import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import mockServer from "./plugins/vite-plugin-mock";
// import myExample from './plugins/vite-plugin-example'
import Components from "unplugin-vue-components/vite";
import eslintPlugin from "vite-plugin-eslint";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    mockServer(),
    Components(), // 增加下面的配置项,这样在运行时就能检查eslint规范
    eslintPlugin({
      include: ["src/**/*.js", "src/**/*.vue", "src/*.js", "src/*.vue"]
    })
  ]
});
